import Vue from 'vue'
import Router from 'vue-router'
import Main from './views/layout/main.vue'
import Home from './views/shop/home.vue'
import Shop from './views/shop/shop.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'main',
      component: Main,
      children: [
          {
              path: 'main/home',
              name: 'main_home',
              component: Home,
          },
          {
              path: 'main/shop',
              name: 'main_shop',
              component: Shop,
          },
          {
              path: 'main/search',
              name: 'main_search',
              component: Shop,
          },
      ]
    },
  ]
})
